package com.qire.other.share;

import java.util.HashMap;

import cn.sharesdk.framework.Platform;
import cn.sharesdk.framework.Platform.ShareParams;
import cn.sharesdk.framework.ShareSDK;
import cn.sharesdk.tencent.qq.QQ;

/**
 * QQ好友分享
 */
public class QQShareAction extends ShareActionImpl {

	@Override
	protected ShareParams createShareParams(ShareParams shareParams, HashMap<String, Object> shareMap) {
		fillShareParams(shareParams, shareMap, "imageUrl");
		fillShareParams(shareParams, shareMap, "title");
		fillShareParams(shareParams, shareMap, "titleUrl");
		fillShareParams(shareParams, shareMap, "text");
		return shareParams;
	}

	@Override
	protected Platform createPlatform() {
		return ShareSDK.getPlatform(QQ.NAME);
	}

}
